home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DELPHI32
/
PRINTING
/
PAGESET
/
PAGESET.ZIP
/
Demo.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-09-12
|
1KB
|
57 lines
unit Demo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Menus, PageSetup;
type
TForm1 = class(TForm)
PageSetupDialog1: TPageSetupDialog;
MainMenu1: TMainMenu;
File1: TMenuItem;
New1: TMenuItem;
Open1: TMenuItem;
Save1: TMenuItem;
N1: TMenuItem;
Pagesetup1: TMenuItem;
Print1: TMenuItem;
N2: TMenuItem;
Exit1: TMenuItem;
About1: TMenuItem;
procedure Pagesetup1Click(Sender: TObject);
procedure Exit1Click(Sender: TObject);
procedure About1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses Unit2;
{$R *.DFM}
procedure TForm1.Pagesetup1Click(Sender: TObject);
begin
PageSetupDialog1.Execute;
end;
procedure TForm1.Exit1Click(Sender: TObject);
begin
Application.Terminate;
end;
procedure TForm1.About1Click(Sender: TObject);
begin
About.ShowModal;
end;
end.